import re
def remove_html(content):
    return re.sub("<[^>]*>", "", content).strip()


def get_subcontent(content, start_str, end_str, splstr=False):
    start = content.find(start_str)
    end = content.find(end_str)
    if splstr:
        return content[start + len(start_str):end]
    else:
        return content[start:end]


def get_rightpart(content, start_str, splstr=False):
    start = content.find(start_str)
    if splstr:
        return content[start + len(start_str):]
    else:
        return content[start:]